package review.chapter00;

/**
 * Enjoy programming!!!
 * Time: 2021/12/21 -  20:47
 */
import java.util.Scanner;
public class Branch00 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.printf("请输入你的信用分：");
        try {
            int score = in.nextInt();

            if (100 == score) {
                System.out.println("信用极好");
            } else if (score > 80 && score <= 99) {
                System.out.println("信用优秀");
            } else if (score >= 60 && score <= 80) {
                System.out.println("信用一般");
            } else if (score >= 0 && score < 60) {
                System.out.println("信用不及格");
            } else {
                System.out.printf("请输入有效信誉分");
            }
        }
        catch (Exception e){
            System.out.println("请输入正确格式int");
        }
    }
}
